package geppetto.phraseTable.phrase.feature.calc.local;

import geppetto.phraseHMM.phraseExtraction.extractedphrase.ExtractedPhrasePairData;
import geppetto.phraseTable.phrase.Phrase;
import geppetto.phraseTable.phrase.feature.AbstractFeature;
import geppetto.phraseTable.phrase.feature.PenaltyFeature;

import java.util.ArrayList;
import java.util.HashMap;


public class PenaltyFeatureCalc implements AbstractFeatureCalc{
	protected final static String FEATURE = "pen";
	protected int order;
	protected boolean shouldPrint = true;
	
	public PenaltyFeatureCalc(int order, boolean shouldPrint) {
		super();
		this.order = order;
		this.shouldPrint = shouldPrint;
	}

	public PenaltyFeatureCalc(int order) {
		super();
		this.order = order;
	}

	@Override
	public void calculateFeature(ArrayList<Phrase> phrases) {
		for(int i = 0; i < phrases.size(); i++){
			phrases.get(i)._features.addFeature(FEATURE,new PenaltyFeature(), order);
		}
	}

}
